package com.wang.designPattern.builder;

/**
 * @description
 * @Author wangzilong
 * @Date 2025/1/14 8:36
 */
public class BuilderPatternTest {
    public static void main(String[] args) {
        OrderBuilder orderBuilder = new OrderBuilder();
        Order vegOrder = orderBuilder.prepareVegOrder();
        System.out.println("Veg order");
        vegOrder.showItems();
        System.out.println("Total Cost: " + vegOrder.getCost());
        Order nonVegOrder = orderBuilder.prepareNonVegOrder();
        System.out.println("\nNon Veg order");
        nonVegOrder.showItems();
        System.out.println("Total Cost: " + nonVegOrder.getCost());
    }
}
